var express = require('express');
var router = express.Router();
const { hahahaModel } = require('../model/model.js')
router.post('/hahaha', async (req, res) => {
  await hahahaModel.create(req.body)
  res.send({
    code: 201,
    msg: '添加成功'
  })
})
/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', { title: 'Express' });
});

module.exports = router;
